package com.wudl.jwt.auth.server.configuration;

import com.wudl.jwt.auth.server.properties.AuthServerProperties;
import com.wudl.jwt.auth.server.utils.JwtTokenServerUtils;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author ：wudl
 * @date ：Created in 2022-02-24 22:41
 * @description：认证服务端配置
 * @modified By：
 * @version: 1.0
 */
@EnableConfigurationProperties(value = {
        AuthServerProperties.class,
})
public class AuthServerConfiguration {
    @Bean
    public JwtTokenServerUtils getJwtTokenServerUtils(AuthServerProperties authServerProperties) {
        return new JwtTokenServerUtils(authServerProperties);
    }
}